home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / lib / partman / finish.d / 70aptinstall_jfs < prev    next >
Text File  |  2008-10-29  |  489b  |  28 lines

  1. #!/bin/sh
  2.  
  3. . /lib/partman/lib/base.sh
  4.  
  5. jfs=no
  6.  
  7. for dev in $DEVICES/*; do
  8.     [ -d "$dev" ] || continue
  9.     cd $dev
  10.     partitions=
  11.     open_dialog PARTITIONS
  12.     while { read_line num id size type fs path name; [ "$id" ]; }; do
  13.         [ "$fs" != free ] || continue
  14.         [ -f $id/method -a -f $id/acting_filesystem ] || continue
  15.         filesystem=$(cat $id/acting_filesystem)
  16.         case $filesystem in
  17.             jfs)
  18.             jfs=yes
  19.             ;;
  20.         esac
  21.     done
  22.     close_dialog
  23. done
  24.  
  25. if [ "$jfs" = yes ]; then
  26.     apt-install jfsutils || true
  27. fi
  28.